<%@page language="java" pageEncoding="UTF-8"%>
<%@include file="header.jsp" %>
<body>
	<script type="text/javascript" src="js/app/authentification/registration.js"></script>
	<script type="text/javascript" src="js/app/authentification/login.js"></script>
	<script type="text/javascript" src="js/app/index.js"></script>
	<script type="text/javascript">	
	
		var labels = new Array(); 
		var messages = new Array();
		var qtips = new Array();
				
		labels['login.textfield.label'] = '<fmt:message key="login.textfield.label"/>';
		labels['password.textfield.label'] = '<fmt:message key="password.textfield.label"/>';
		labels['firstname.textfield.label'] = '<fmt:message key="firstname.textfield.label"/>';
		labels['lastname.textfield.label'] = '<fmt:message key="lastname.textfield.label"/>';
		labels['rememberme.checkbox.label'] = '<fmt:message key="rememberme.checkbox.label"/>';
		labels['login.button.label'] = '<fmt:message key="login.button.label"/>';
		labels['clear.button.label'] = '<fmt:message key="clear.button.label"/>';
		labels['registration.button.label'] = '<fmt:message key="registration.button.label"/>';
		labels['close.button.label'] = '<fmt:message key="close.button.label"/>';
		labels['login.form.title'] = '<fmt:message key="login.form.title"/>';
		labels['login.success.alert.title'] = '<fmt:message key="login.success.alert.title"/>';
		labels['registration.form.title'] = '<fmt:message key="registration.form.title"/>';
		labels['failure.alert.title'] = '<fmt:message key="failure.alert.title"/>';
	
		labels['button.title.about'] = '<fmt:message key="button.title.about"/>';
		
		/*general error messages*/
		messages['message.error.connect.failure'] = '<fmt:message key="message.error.connect.failure"/>';
		messages['message.error.server.invalid'] = '<fmt:message key="message.error.server.invalid"/>';
		
		messages['login.textfield.empty.message'] = '<fmt:message key="login.textfield.empty.message"/>';
		messages['login.textfield.invalid.message'] = '<fmt:message key="login.textfield.invalid.message"/>';
		messages['password.textfield.empty.message'] = '<fmt:message key="password.textfield.empty.message"/>';
		messages['password.textfield.invalid.message'] = '<fmt:message key="password.textfield.invalid.message"/>';		
		messages['firstname.textfield.empty.message'] = '<fmt:message key="firstname.textfield.empty.message"/>';
		messages['firstname.textfield.invalid.message'] = '<fmt:message key="firstname.textfield.invalid.message"/>';
		messages['lastname.textfield.empty.message'] = '<fmt:message key="lastname.textfield.empty.message"/>';
		messages['lastname.textfield.invalid.message'] = '<fmt:message key="lastname.textfield.invalid.message"/>';
		messages['login.success.alert.message'] = '<fmt:message key="login.success.alert.message"/>';
		messages['login.failure.alert.message1'] = '<fmt:message key="login.failure.alert.message1"/>';
		messages['login.failure.alert.message2'] = '<fmt:message key="login.failure.alert.message2"/>';
		messages['registration.success.alert.message'] = '<fmt:message key="registration.success.alert.message"/>';
		messages['registration.failure.alert.message'] = '<fmt:message key="registration.failure.alert.message"/>';
									 											
		/*qtips for buttons and column headers*/
		qtips['qtips.button.login'] = '<fmt:message key="qtips.button.login"/>';
		qtips['qtips.button.clear'] = '<fmt:message key="qtips.button.clear"/>';
		qtips['qtips.button.gotoregister'] = '<fmt:message key="qtips.button.gotoregister"/>';
		qtips['qtips.button.register'] = '<fmt:message key="qtips.button.register"/>';
	</script>	
	
	<div class="header">
		<div class="header_left">
			Программа учета расходов на коммунальные услуги
		</div>
	</div>
	
	<center>
		<div class="login-wrapper"> 
			<div id="login_container"></div>
		</div>
	</center>
	<div class="footer">
		<div class="copyright">
			Андрей Кузнецов 2012 г. 
		</div>	
	</div>
</body>
</html>